package com.sweetguy.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@ColumnWidth(20)
@Data
public class EpisodeExcelDTO implements Serializable {

    @ExcelProperty(value = {"集次表", "视频类别"})
    private String categoryTitle;

    @ExcelProperty(value = {"集次表", "课程标题"})
    private String courseTitle;

    @ExcelProperty(value = {"集次表", "季次标题"})
    private String seasonTitle;

    @ExcelProperty(value = {"集次表", "视频标题"})
    private String title;

    @ExcelProperty(value = {"集次表", "视频作者"})
    private String author;

    @ExcelProperty(value = {"集次表", "视频单价（元）"})
    private Double price;

    @ExcelProperty(value = {"集次表", "创建时间"})
    private LocalDateTime created;

    @ExcelProperty(value = {"集次表", "修改时间"})
    private LocalDateTime updated;

    @ColumnWidth(100)
    @ExcelProperty(value = {"集次表", "视频描述"})
    private String info;

    @ColumnWidth(100)
    @ExcelProperty(value = {"集次表", "季次描述"})
    private String seasonInfo;

    @ExcelProperty(value = {"集次表", "课程描述"})
    private String courseInfo;
}
